import { lazy } from 'react';
import Home from '../views/home';

const routes = [
  {
    path: '/',
    name: 'Home',
    meta: { title: 'REACT 首页' },
    component: Home,
  },
  {
    path: '/login',
    name: 'login',
    component: lazy(() => import('../views/login/index.jsx')),
    meta: {
      title: 'REACT 登录页',
    },
  },
  {
    path: '*',
    name: '404',
    component: lazy(() => import('../views/other-page/404')),
    meta: {
      title: '404页面',
    },
  },
];

export default routes;
